]> dgit.raspbian.org Git - gnome-shell.git/commit
swipeTracker: Reset before emitting 'end' and not after
authorAlexander Mikhaylenko <exalm7659@gmail.com>
Sat, 13 Mar 2021 14:57:53 +0000 (19:57 +0500)
committerMarge Bot <marge-bot@gnome.org>
Sat, 13 Mar 2021 18:08:24 +0000 (18:08 +0000)
commitf48e58a81a91ca6484c706d3405b219971984bbc
treeca0e82c50ffdbf66a9b87c981571f21f616332c6
parent3c1074085e1b507f597c8185d6a0e5e2a0f53c22
swipeTracker: Reset before emitting 'end' and not after

If the actor is unmapped in the handler, the touch gesture will cancel.
Since we haven't reset the state yet, it will still work and will actually
cancel the gesture, so reset before that instead.

Fixes overview cancelling when trying to open it with a swipe.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1731>
js/ui/swipeTracker.js